package cn.edu.xmut.chen.zhlg.zhlg.vacancy.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;

@Data
@ApiModel("岗位添加/更新参数")
public class VacancyAddParam {

    @ApiModelProperty("岗位ID")
    private String id;

    @NotBlank(message = "岗位名称不能为空")
    @ApiModelProperty("岗位名称")
    private String vacancyName;

    @NotBlank(message = "公司名称不能为空")
    @ApiModelProperty("公司ID")
    private String companyId;

    @NotBlank(message = "岗位详情不能为空")
    @ApiModelProperty("岗位详情")
    private String detailed;

    @NotNull(message = "薪资不能为空")
    @PositiveOrZero(message = "薪资必须大于等于0")
    @ApiModelProperty("薪资")
    private String salary;

    @ApiModelProperty("紧急程度")
    private String level;

    @NotNull(message = "招聘人不能为空")
    @ApiModelProperty("发布者ID")
    private String posterId;

}